﻿using System;
using System.Collections.Generic;
using System.Text;
using XiaoGang.Soft.XGWMS.MODEL;
using XiaoGang.Soft.XGWMS.COM;

namespace XiaoGang.Soft.XGWMS.BLL
{
    public class BLL_System
    {
        DAL_SQL.DAL_System dal = new XiaoGang.Soft.XGWMS.DAL_SQL.DAL_System ();

        /// <summary>
        /// 清除冗余货单信息
        /// </summary>
        /// <returns></returns>
        public string DeleteBillGarbage(out int ReCount)
        {
            return dal.DeleteBillGarbage (out ReCount);
        }

        /// <summary>
        /// 清除冗余商品信息[已删除并且没有销售记录]
        /// </summary>
        /// <param name="ReCount"></param>
        /// <returns></returns>
        public string DeleteGoodsGarbage ( out int ReCount )
        {
            return dal.DeleteGoodsGarbage (out ReCount);
        }

        /// <summary>
        /// 清除冗余商品分类信息[已删除并且没有被使用]
        /// </summary>
        /// <param name="ReCount"></param>
        /// <returns></returns>
        public string DeleteGoodsGroupGarbage ( out int ReCount )
        {
            return dal.DeleteGoodsGroupGarbage(out ReCount);
        }

        /// <summary>
        /// 清除冗余会员信息[已删除并且没有消费记录]
        /// </summary>
        /// <param name="ReCount"></param>
        /// <returns></returns>
        public string DeleteMemberGarbage ( out int ReCount )
        {
            return dal.DeleteMemberGarbage (out ReCount);
        }

        /// <summary>
        /// 数据库备份
        /// </summary>
        /// <param name="DataBaseName"></param>
        /// <param name="Path"></param>
        /// <returns></returns>
        public string BackUp ( string DataBaseName, string Path )
        {
            return dal.BackUp (DataBaseName,Path);
        }

        /// <summary>
        /// 数据库还原
        /// </summary>
        /// <param name="DataBaseName"></param>
        /// <param name="Path"></param>
        /// <returns></returns>
        public string ReStore ( string DataBaseName, string Path )
        {
            return dal.ReStore (DataBaseName, Path);
        }
    }
}
